package DrawPic;

import java.util.Scanner;

public class Rectangle extends Figure {
	private int kuan;
	
	
	public Rectangle(int chang, int kuan){
		super(chang);
		this.kuan=kuan;
	}
	
	public static void draw(){
		System.out.println("请输入长方形的长和宽：");
		Scanner sca=new Scanner(System.in);
		int chang=sca.nextInt();
		int kuan=sca.nextInt();
		for(int i=0; i<chang; i++){
			for(int j=0; j<kuan; j++){
				System.out.print("*"+"\t");
			}System.out.println();
		}	System.out.println("绘制成功！请输入接下来你要执行的命令：");	
	}	
	
	public static void erase(){
		System.out.println();
		System.out.println();
		System.out.println();
		System.out.println();
	}
	
	public int getKuan() {
		return kuan;
	}

	public void setKuan(int kuan) {
		this.kuan = kuan;
	}
	

	
}
